<template>
  <el-card class="box-card" >
    <div slot="header" class="clearfix">
      <span > {{villagersNotice.noticeTitle}}</span>
    </div>
    <div  class="text item" >
          {{villagersNotice.noticeContent}}
    </div>
  </el-card>
</template>

<script>
import { getNotice,listNotice} from '@/api/system/notice'
export default {
  name: 'Notice',
  data() {
    return{

      villagersNotice:{},

    }
  },
  methods: {
    getContent(){

      getNotice(2).then(response => {
        this.villagersNotice = response.data
      })

      console.log(this.villagersNotice)
    }
  },
  created() {
    this.getContent();
  }
}
</script>

<style scoped>
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}

.box-card {
  width: 480px;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
</style>
